gtkplacesview: align spinner with header label
authorCarlos Soriano <csoriano@gnome.org>
Thu, 24 Sep 2015 09:54:58 +0000 (11:54 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Thu, 15 Oct 2015 17:22:40 +0000 (19:22 +0200)
Use the box margin top instead of the label margin top,
so the spinner remains aligned with the header label.

https://bugzilla.gnome.org/show_bug.cgi?id=756568

gtk/gtkplacesview.c

index 7f5f8a129a942b302ce601e2040351ae86ab1256..7c70e98085cd0c0efea16b049505474bb280a02f 100644 (file)
@@ -1969,12 +1969,12 @@ listbox_header_func (GtkListBoxRow *row,
       GtkWidget *separator;
 
       header = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+      gtk_widget_set_margin_top (header, 6);
 
       separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
 
       label = g_object_new (GTK_TYPE_LABEL,
                             "use_markup", TRUE,
-                            "margin-top", 6,
                             "margin-start", 12,
                             "label", text,
                             "xalign", 0.0f,